#import "DDImageView.h"
@implementation DDImageView
- (instancetype)initWithImageName:(NSString *)imageName
{
    self = [super init];
    if (self)
    {
        self.imageName = imageName;
    }
    return self;
}
- (void)setImageName:(NSString *)imageName
{
    if (!imageName || [imageName length] < 1)
    {
        return;
    }
    if (_imageName != imageName)
    {
        _imageName = imageName;
        self.image = [_imageName yjd_image];
    }
}

@end
